package com.wicket.okrpbff.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrpbff.biz.service.UnstructuredDataService;
import com.wicket.okrpbff.biz.service.dto.req.*;
import com.wicket.okrpbff.biz.service.dto.res.*;
import com.wicket.okrpbff.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wicket.okrcomponent.integration.FwCompUnstructuredDataClient;
import com.wicket.okrcomponent.integration.dto.QueryDocumentListComRespDto;
import com.wicket.okrcomponent.integration.dto.QueryDocumentListComReqDto;
import com.wicket.okrcomponent.integration.dto.ImplementUnstructuredRelationshipCompDocNameComRespDto;
import com.wicket.okrcomponent.integration.dto.ImplementUnstructuredRelationshipCompDocNameComReqDto;
import java.util.stream.Collectors;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrpbff.common.exception.Assert;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Api(value = "UnstructuredData", tags = { "UnstructuredData" })
@RestController
// @RequestMapping("/poms/unstructuredData/")
public class UnstructuredDataController {

  @Autowired
  UnstructuredDataService unstructuredDataService;
/**
   * B2执行文档关系补偿文档名称（运维接口）
   * gen by moon at 8/6/2024, 7:55:35 PM
   */
    @PostMapping("/oms/platform/unstructuredData/implementUnstructuredRelationshipCompDocName")
    @ApiOperation(value = "B2执行文档关系补偿文档名称（运维接口）", response = OkrResult.class)
    public OkrResult<BffImplementUnstructuredRelationshipCompDocNameRespDto> implementUnstructuredRelationshipCompDocName(@RequestBody(required=false) @Validated BffImplementUnstructuredRelationshipCompDocNameReqDto reqDTO){
        return OkrResult.success(unstructuredDataService.implementUnstructuredRelationshipCompDocName(reqDTO));
    }
}
